package com.zhongen.oa.task;

import com.zhongen.oa.service.ProjectBasicInfoService;
import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Slf4j
@AllArgsConstructor
@Component("projectStatusUpdateTask")
public class ProjectStatusUpdateTask {

	private final ProjectBasicInfoService projectBasicInfoService;

	@SneakyThrows
	public String projectStatusUpdateTask() {
		projectBasicInfoService.projectStatusUpdateTask();
		log.info("更新项目状态数据", LocalDateTime.now());
		return "0";
	}

}
